﻿{extend name="public:base"}
{block name="content"}

<!-- /.aside -->
<section id="content">
    <section class="hbox stretch">
        <aside>
            <section class="vbox">
                <header class="header bg-white b-b clearfix">
                    {include file="public:mylocal" /}
                    <div class="row m-t-sm">
                        <div class="col-sm-11 m-b-xs">
                            <div class="btn-group">
                                <button type="button" class="btn btn-sm btn-default refresh" title="点击刷新"><i
                                        class="fa fa-refresh"></i></button>
                            </div>
                            <a href="javascript:void(0);" url="{:url('environment_add')}"
                               class="layer_new_page btn btn-sm btn-default" title="新增栏目" {$id|pw_check='news_0_0' }>
                                <i class="fa fa-plus"></i> 新增栏目
                            </a>
                        </div>
                    </div>
                </header>
                <section class="scrollable wrapper w-f" id="con_lists" style="top:65px;">
                    <section class="panel panel-default">
                        <div class="table-responsive">
                            <table class="table table-striped m-b-none">
                                <thead>
                                <tr>
                                    <th width="2%">
                                        <input type="checkbox">
                                    </th>
                                    <th width="5%" class="text-center">ID</th>
                                    <th width="20%" class="text-center">标题</th>
                                    <th width="20%" class="text-center">显示图片</th>
                                    <th width="5%" class="text-center" {$id|pw_check='news_0_3' }>状态</th>
                                    <th width="5%" class="text-center" {$id|pw_check='news_0_4' }>排序</th>
                                    <th width="6%" class="text-center">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="lists" id="vo"}
                                <tr>
                                    <td>
                                        <input type="checkbox" name="keyid[]" value="{$vo.id}">
                                    </td>
                                    <td class="text-center">{$i}</td>
                                    <td class="text-center">{$vo.title}</td>
                                    <td style="text-align:center" class="text-left"><img src="{$vo.head_img}" alt="" width="40px"></td>

                                    <td class="text-center" {$id|pw_check='news_0_3' }>
                                        {eq name="vo.is_show" value="1"}
                                        <a href="javascript:void(0);" class="btn-primary change_state"
                                           table_data="banner,id,{$vo.id},is_show">显示</a>
                                        {else /}
                                        <a href="javascript:void(0);" class="btn-danger change_state"
                                           table_data="banner,id,{$vo.id},is_show">隐藏</a>
                                        {/eq}
                                    </td>

                                    <td class="text-center" {$id|pw_check='news_0_4' }>
                                        <input type="text" class="resort" table_data="banner,id,{$vo.id}"
                                               keyid="{$vo.sort}" style="width: 30px;text-align: center;"
                                               value="{$vo.sort}">
                                    </td>

                                    <td class="text-center">
                                        <a href="javascript:void(0);"
                                           url="{:url('banner_edit',['id'=>$vo['id']])}"
                                           class="layer_new_page active" data-toggle="class" title="编辑"
                                           {$id|pw_check='news_0_2' }>
                                            <i class="fa fa-edit "></i>
                                        </a>&nbsp;&nbsp;
                                        <a href="javascript:void(0);" class="active remove_single"
                                           table_data="banner,id,{$vo.id},true" data-toggle="class"
                                           title="删除" {$id|pw_check='news_0_1' }>
                                            <i class="fa fa-trash-o"></i>
                                        </a>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                    </section>
                    {$lists|raw}
                </section>
            </section>
        </aside>
    </section>

</section>
</section>
</section>
{/block}
{/extend}
